/*
 * Created on 2007-5-12
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package nc.vo.sz.datatranfer.voucher;

import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.CircularlyAccessibleValueObject;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class VoucherVO extends AggregatedValueObject {
	
	public VoucherHeaderVO header;
	public VoucherDetailVO[] details;

	/**
	 * 
	 */
	public VoucherVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see nc.vo.pub.AggregatedValueObject#getChildrenVO()
	 */
	public CircularlyAccessibleValueObject[] getChildrenVO() {
		// TODO Auto-generated method stub
		return details;
	}

	/* (non-Javadoc)
	 * @see nc.vo.pub.AggregatedValueObject#getParentVO()
	 */
	public CircularlyAccessibleValueObject getParentVO() {
		// TODO Auto-generated method stub
		return header;
	}

	/* (non-Javadoc)
	 * @see nc.vo.pub.AggregatedValueObject#setChildrenVO(nc.vo.pub.CircularlyAccessibleValueObject[])
	 */
	public void setChildrenVO(CircularlyAccessibleValueObject[] arg0) {
		// TODO Auto-generated method stub
		details = (VoucherDetailVO[])arg0;

	}

	/* (non-Javadoc)
	 * @see nc.vo.pub.AggregatedValueObject#setParentVO(nc.vo.pub.CircularlyAccessibleValueObject)
	 */
	public void setParentVO(CircularlyAccessibleValueObject arg0) {
		// TODO Auto-generated method stub
		header = (VoucherHeaderVO)arg0;

	}

}
